package com.tsite.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tsite.service.IHomService;

@Controller
public class HomeController {

	@Autowired
	IHomService homService;

	@RequestMapping(method = RequestMethod.GET, value = { "/", "" })
	String helloWord() {
		String a = homService.getName();
		if (a != null)
			return "public.default";
		return null;
	}
}
